import hilog from '@ohos.hilog';
const domain = 0xfff0;
const prefix = 'XIAO_QIANG';
const format = '%{public}s, %{public}s';

export class Logger {

  static debug(...args: string[]) {

    hilog.debug(domain, prefix, format, args);
  }

  static info(...args: string[]): void {
    hilog.info(domain, prefix, format,  args);
  }

  static warn(...args: string[]): void {
    hilog.warn(domain, prefix, format, args);
  }

  static error(...args: string[]): void {
    hilog.error(domain, prefix, format, args);
  }
  static isLoggable(level:hilog.LogLevel){
    hilog.isLoggable(domain, prefix,level)
  }
}
